<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: mars
  Date: 2019-06-17
  Time: 18:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>注册</title>
</head>
<body>
<h1>Sign Up</h1>
<form:form action="${pageContext.request.contextPath}/user/registe" method="post" modelAttribute="user">
    <form:label path="username">username:</form:label>
    <form:input path="username"/>
    <br>
    <form:errors path="username" cssStyle="color: red;"/>
    <br>
    <form:label path="phone">phone:</form:label>
    <form:input path="phone"/>
    <br>
    <form:errors path="phone" cssStyle="color: red;"/>
    <br>
    <form:label path="email">email:</form:label>
    <form:input path="email"/>
    <br>
    <form:errors path="email" cssStyle="color: red;"/>
    <br>
    <form:label path="password">password:</form:label>
    <form:password path="password"/>
    <br>
    <form:errors path="password" cssStyle="color: red;"/>
    <br>
    <form:label path="gender">gender:</form:label>
    <form:radiobutton path="gender" value="1" label="Female"/>
    <form:radiobutton path="gender" value="0" label="Male"/>
    <br>
    <input type="submit" value="submit">
</form:form>
</body>
</html>
